home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Source.bin / WizardBeanInfo.java < prev    next >
Text File  |  1998-10-13  |  20KB  |  561 lines

  1. /*
  2.  * WizardBeanInfo.java
  3.  */
  4.  
  5. package symantec.itools.awt;
  6.  
  7. import java.beans.*;
  8. import symantec.itools.beans.*;
  9. import java.util.ResourceBundle;
  10.  
  11. //  08/19/98    LAB    Moved to GroupAWTAdditions folder.
  12.  
  13. /**
  14.  * BeanInfo for Wizard.
  15.  */
  16.  
  17. public class WizardBeanInfo extends SimpleBeanInfo {
  18.  
  19.     /**
  20.      * Constructs a WizardBeanInfo object.
  21.      */
  22.     public WizardBeanInfo()
  23.     {
  24.     }
  25.  
  26.     /**
  27.      * Gets a BeanInfo for the superclass of this bean.
  28.      * @return BeanInfo[] containing this bean's superclass BeanInfo
  29.      */
  30.     public BeanInfo[] getAdditionalBeanInfo() {
  31.         try {
  32.             BeanInfo[] bi = new BeanInfo[1];
  33.             bi[0] = Introspector.getBeanInfo(beanClass.getSuperclass());
  34.             return bi;
  35.         }
  36.         catch (IntrospectionException e) { throw new Error(e.toString());}
  37.     }
  38.  
  39.     /**
  40.      * Gets the SymantecBeanDescriptor for this bean.
  41.      * @return an object of type SymantecBeanDescriptor
  42.      * @see symantec.itools.beans.SymantecBeanDescriptor
  43.      */
  44.     public BeanDescriptor getBeanDescriptor() {
  45.         ResourceBundle group = ResourceBundle.getBundle("symantec.itools.resources.GroupBundle");
  46.         String s = group.getString("GroupAWTAdditions");
  47.         
  48.         SymantecBeanDescriptor bd = new SymantecBeanDescriptor(beanClass);
  49.         bd.setFolder(s);
  50.         bd.setToolbar(s);
  51.         bd.setWinHelp("0x60103");//259 + 0x60000
  52.  
  53.         bd.addAdditionalConnections(getAdditionalBeanInfo());
  54.  
  55.         return (BeanDescriptor)bd;
  56.     }
  57.  
  58.     /**
  59.      * Gets an image that may be used to visually represent this bean
  60.      * (in the toolbar, on a form, etc).
  61.      * @param iconKind the type of icon desired, one of: BeanInfo.ICON_MONO_16x16,
  62.      * BeanInfo.ICON_COLOR_16x16, BeanInfo.ICON_MONO_32x32, or BeanInfo.ICON_COLOR_32x32.
  63.      * @return an image for this bean, always color even if requested monochrome
  64.      * @see BeanInfo#ICON_MONO_16x16
  65.      * @see BeanInfo#ICON_COLOR_16x16
  66.      * @see BeanInfo#ICON_MONO_32x32
  67.      * @see BeanInfo#ICON_COLOR_32x32
  68.      */
  69.     public java.awt.Image getIcon(int iconKind) {
  70.         if (iconKind == BeanInfo.ICON_MONO_16x16 ||
  71.             iconKind == BeanInfo.ICON_COLOR_16x16) {
  72.             java.awt.Image img = loadImage("WizardC16.gif");
  73.             return img;
  74.         }
  75.  
  76.         if (iconKind == BeanInfo.ICON_MONO_32x32 ||
  77.             iconKind == BeanInfo.ICON_COLOR_32x32) {
  78.             java.awt.Image img = loadImage("WizardC32.gif");
  79.             return img;
  80.         }
  81.  
  82.         return null;
  83.     }
  84.  
  85.     /**
  86.      * Gets an array of descriptions of the methods used for "connections" by
  87.      * Visual CafΘ's Interaction Wizard.
  88.      * Included in each method description is a CONNECTIONS ConnectionDescriptor.
  89.      * @return method descriptions for this bean
  90.      * @see symantec.itools.beans.ConnectionDescriptor#CONNECTIONS
  91.      */
  92.     public MethodDescriptor[] getMethodDescriptors() {
  93.         Class[] args;
  94.         ConnectionDescriptor connection;
  95.         java.util.Vector connections;
  96.         java.util.Vector md = new java.util.Vector();
  97.         ResourceBundle conn = ResourceBundle.getBundle("symantec.itools.resources.ConnBundle");
  98.  
  99.         // setSelectedIndex
  100.  
  101.         /*
  102.         try{
  103.             args = new Class[1];
  104.             args[0] = java.lang.Integer.TYPE;
  105.             MethodDescriptor setSelectedIndex = new MethodDescriptor(beanClass.getMethod("setSelectedIndex", args));
  106.  
  107.             connections = new java.util.Vector();
  108.             connection = new ConnectionDescriptor("input", "int", "",
  109.                                     "%name%.setSelectedIndex(%arg%);",
  110.                                     conn.getString("SetSelectedIndex"));
  111.             connections.addElement(connection);
  112.  
  113.             setSelectedIndex.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  114.             md.addElement(setSelectedIndex);
  115.         } catch (Exception e) { throw new Error("setSelectedIndex:: " + e.toString()); }
  116.         */
  117.  
  118.         // getSelectedIndex
  119.  
  120.         try{
  121.             args = null;
  122.             MethodDescriptor getSelectedIndex = new MethodDescriptor(beanClass.getMethod("getSelectedIndex", args));
  123.  
  124.             connections = new java.util.Vector();
  125.             connection = new ConnectionDescriptor("output", "int", "",
  126.                                     "%name%.getSelectedIndex()",
  127.                                     conn.getString("SetSelectedIndex"));
  128.             connections.addElement(connection);
  129.  
  130.             getSelectedIndex.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  131.             md.addElement(getSelectedIndex);
  132.         } catch (Exception e) { throw new Error("getSelectedIndex:: " + e.toString()); }
  133.         
  134.         // setButtonsAlignment
  135.         
  136.         /*
  137.         try{
  138.             args = new Class[1];
  139.             args[0] = java.lang.Integer.TYPE ;
  140.             MethodDescriptor setButtonsAlignment = new MethodDescriptor(beanClass.getMethod("setButtonsAlignment", args));
  141.  
  142.             connections = new java.util.Vector();
  143.             connection = new ConnectionDescriptor("input", "int", "",
  144.                                     "%name%.setButtonsAlignment(%arg%);",
  145.                                     conn.getString("SetButtonsAlignment"));
  146.             connections.addElement(connection);
  147.  
  148.             setButtonsAlignment.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  149.             md.addElement(setButtonsAlignment);
  150.         } catch (Exception e) { throw new Error("setButtonsAlignment:: " + e.toString()); }
  151.         */
  152.         
  153.         // getButtonsAlignment
  154.  
  155.         /*
  156.         try{
  157.             args = null;
  158.             MethodDescriptor getButtonsAlignment = new MethodDescriptor(beanClass.getMethod("getButtonsAlignment", args));
  159.  
  160.             connections = new java.util.Vector();
  161.             connection = new ConnectionDescriptor("output", "int", "",
  162.                                     "%name%.getButtonsAlignment()",
  163.                                     conn.getString("GetButtonsAlignment"));
  164.             connections.addElement(connection);
  165.  
  166.             getButtonsAlignment.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  167.             md.addElement(getButtonsAlignment);
  168.         } catch (Exception e) { throw new Error("getButtonsAlignment:: " + e.toString()); }
  169.         */
  170.  
  171.         // getPageCount
  172.  
  173.         try{
  174.             args = null;
  175.             MethodDescriptor getPageCount = new MethodDescriptor(beanClass.getMethod("getPageCount", args));
  176.  
  177.             connections = new java.util.Vector();
  178.             connection = new ConnectionDescriptor("output", "int", "",
  179.                                     "%name%.getPageCount()",
  180.                                     conn.getString("GetPageCount"));
  181.             connections.addElement(connection);
  182.  
  183.             getPageCount.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  184.             md.addElement(getPageCount);
  185.         } catch (Exception e) { throw new Error("getPageCount:: " + e.toString()); }
  186.  
  187.         // goPrevious
  188.  
  189.         try{
  190.             args = null;
  191.             MethodDescriptor goPrevious = new MethodDescriptor(beanClass.getMethod("goPrevious", args));
  192.  
  193.             connections = new java.util.Vector();
  194.             connection = new ConnectionDescriptor("input", "void", "",
  195.                                     "%name%.goPrevious();",
  196.                                     conn.getString("GoPrevious"));
  197.             connections.addElement(connection);
  198.  
  199.             goPrevious.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  200.             md.addElement(goPrevious);
  201.         } catch (Exception e) { throw new Error("goPrevious:: " + e.toString()); }
  202.  
  203.         // goNext
  204.  
  205.         try{
  206.             args = null;
  207.             MethodDescriptor goNext = new MethodDescriptor(beanClass.getMethod("goNext", args));
  208.  
  209.             connections = new java.util.Vector();
  210.             connection = new ConnectionDescriptor("input", "void", "",
  211.                                     "%name%.goNext();",
  212.                                     conn.getString("GoNext"));
  213.             connections.addElement(connection);
  214.  
  215.             goNext.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  216.             md.addElement(goNext);
  217.         } catch (Exception e) { throw new Error("goNext:: " + e.toString()); }
  218.  
  219.         // doFinish
  220.  
  221.         try{
  222.             args = null;
  223.             MethodDescriptor doFinish = new MethodDescriptor(beanClass.getMethod("doFinish", args));
  224.  
  225.             connections = new java.util.Vector();
  226.             connection = new ConnectionDescriptor("input", "void", "",
  227.                                     "%name%.doFinish();",
  228.                                     conn.getString("DoFinish"));
  229.             connections.addElement(connection);
  230.  
  231.             doFinish.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  232.             md.addElement(doFinish);
  233.         } catch (Exception e) { throw new Error("doFinish:: " + e.toString()); }
  234.  
  235.         // doCancel
  236.  
  237.         try{
  238.             args = null;
  239.             MethodDescriptor doCancel = new MethodDescriptor(beanClass.getMethod("doCancel", args));
  240.  
  241.             connections = new java.util.Vector();
  242.             connection = new ConnectionDescriptor("input", "void", "",
  243.                                     "%name%.doCancel();",
  244.                                     conn.getString("DoCancel"));
  245.             connections.addElement(connection);
  246.  
  247.             doCancel.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  248.             md.addElement(doCancel);
  249.         } catch (Exception e) { throw new Error("doCancel:: " + e.toString()); }
  250.  
  251.         // doHelp
  252.  
  253.         try{
  254.             args = null;
  255.             MethodDescriptor doHelp = new MethodDescriptor(beanClass.getMethod("doHelp", args));
  256.  
  257.             connections = new java.util.Vector();
  258.             connection = new ConnectionDescriptor("input", "void", "",
  259.                                     "%name%.doHelp();",
  260.                                     conn.getString("DoHelp"));
  261.             connections.addElement(connection);
  262.  
  263.             doHelp.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  264.             md.addElement(doHelp);
  265.         } catch (Exception e) { throw new Error("doHelp:: " + e.toString()); }
  266.  
  267.         // updateButtonsState
  268.  
  269.         try{
  270.             args = null;
  271.             MethodDescriptor updateButtonsState = new MethodDescriptor(beanClass.getMethod("updateButtonsState", args));
  272.  
  273.             connections = new java.util.Vector();
  274.             connection = new ConnectionDescriptor("input", "void", "",
  275.                                     "%name%.updateButtonsState();",
  276.                                     conn.getString("SetButtonsState"));
  277.             connections.addElement(connection);
  278.  
  279.             updateButtonsState.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  280.             md.addElement(updateButtonsState);
  281.         } catch (Exception e) { throw new Error("updateButtonsState:: " + e.toString()); }
  282.  
  283.         // setPreviousEnabled
  284.  
  285.         try{
  286.             args = new Class[1];
  287.             args[0] = java.lang.Boolean.TYPE;
  288.             MethodDescriptor setPreviousEnabled = new MethodDescriptor(beanClass.getMethod("setPreviousEnabled", args));
  289.  
  290.             connections = new java.util.Vector();
  291.             connection = new ConnectionDescriptor("input", "void", "",
  292.                                     "%name%.setPreviousEnabled(true);",
  293.                                     conn.getString("SetPreviousEnabledTrue"));
  294.             connections.addElement(connection);
  295.  
  296.             connection = new ConnectionDescriptor("input", "void", "",
  297.                                     "%name%.setPreviousEnabled(false);",
  298.                                     conn.getString("SetPreviousEnabledFalse"));
  299.             connections.addElement(connection);
  300.  
  301.             setPreviousEnabled.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  302.             md.addElement(setPreviousEnabled);
  303.         } catch (Exception e) { throw new Error("setPreviousEnabled:: " + e.toString()); }
  304.  
  305.         // setNextEnabled
  306.  
  307.         try{
  308.             args = new Class[1];
  309.             args[0] = java.lang.Boolean.TYPE;
  310.             MethodDescriptor setNextEnabled = new MethodDescriptor(beanClass.getMethod("setNextEnabled", args));
  311.  
  312.             connections = new java.util.Vector();
  313.             connection = new ConnectionDescriptor("input", "void", "",
  314.                                     "%name%.setNextEnabled(true);",
  315.                                     conn.getString("SetNextEnabledTrue"));
  316.             connections.addElement(connection);
  317.  
  318.             connection = new ConnectionDescriptor("input", "void", "",
  319.                                     "%name%.setNextEnabled(false);",
  320.                                     conn.getString("SetNextEnabledFalse"));
  321.             connections.addElement(connection);
  322.  
  323.             setNextEnabled.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  324.             md.addElement(setNextEnabled);
  325.         } catch (Exception e) { throw new Error("setNextEnabled:: " + e.toString()); }
  326.  
  327.         // setFinishEnabled
  328.  
  329.         try{
  330.             args = new Class[1];
  331.             args[0] = java.lang.Boolean.TYPE;
  332.             MethodDescriptor setFinishEnabled = new MethodDescriptor(beanClass.getMethod("setFinishEnabled", args));
  333.  
  334.             connections = new java.util.Vector();
  335.             connection = new ConnectionDescriptor("input", "void", "",
  336.                                     "%name%.setFinishEnabled(true);",
  337.                                     conn.getString("SetFinishEnabledTrue"));
  338.             connections.addElement(connection);
  339.  
  340.             connection = new ConnectionDescriptor("input", "void", "",
  341.                                     "%name%.setFinishEnabled(false);",
  342.                                     conn.getString("SetFinishEnabledFalse"));
  343.             connections.addElement(connection);
  344.  
  345.             setFinishEnabled.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  346.             md.addElement(setFinishEnabled);
  347.         } catch (Exception e) { throw new Error("setFinishEnabled:: " + e.toString()); }
  348.  
  349.         // setCancelEnabled
  350.  
  351.         try{
  352.             args = new Class[1];
  353.             args[0] = java.lang.Boolean.TYPE;
  354.             MethodDescriptor setCancelEnabled = new MethodDescriptor(beanClass.getMethod("setCancelEnabled", args));
  355.  
  356.             connections = new java.util.Vector();
  357.             connection = new ConnectionDescriptor("input", "void", "",
  358.                                     "%name%.setCancelEnabled(true);",
  359.                                     conn.getString("SetCancelEnabledTrue"));
  360.             connections.addElement(connection);
  361.  
  362.             connection = new ConnectionDescriptor("input", "void", "",
  363.                                     "%name%.setCancelEnabled(false);",
  364.                                     conn.getString("SetCancelEnabledFalse"));
  365.             connections.addElement(connection);
  366.  
  367.             setCancelEnabled.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  368.             md.addElement(setCancelEnabled);
  369.         } catch (Exception e) { throw new Error("setCancelEnabled:: " + e.toString()); }
  370.  
  371.         // setHelpEnabled
  372.  
  373.         try{
  374.             args = new Class[1];
  375.             args[0] = java.lang.Boolean.TYPE;
  376.             MethodDescriptor setHelpEnabled = new MethodDescriptor(beanClass.getMethod("setHelpEnabled", args));
  377.  
  378.             connections = new java.util.Vector();
  379.             connection = new ConnectionDescriptor("input", "void", "",
  380.                                     "%name%.setHelpEnabled(true);",
  381.                                     conn.getString("SetHelpEnabledTrue"));
  382.             connections.addElement(connection);
  383.  
  384.             connection = new ConnectionDescriptor("input", "void", "",
  385.                                     "%name%.setHelpEnabled(false);",
  386.                                     conn.getString("SetHelpEnabledFalse"));
  387.             connections.addElement(connection);
  388.  
  389.             setHelpEnabled.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  390.             md.addElement(setHelpEnabled);
  391.         } catch (Exception e) { throw new Error("setHelpEnabled:: " + e.toString()); }
  392.  
  393.         // setNextPageIndex
  394.  
  395.         try{
  396.             args = new Class[1];
  397.             args[0] = java.lang.Integer.TYPE;
  398.             MethodDescriptor setNextPageIndex = new MethodDescriptor(beanClass.getMethod("setNextPageIndex", args));
  399.  
  400.             connections = new java.util.Vector();
  401.             connection = new ConnectionDescriptor("input", "int", "",
  402.                                     "%name%.setNextPageIndex(%arg%);",
  403.                                     conn.getString("SetNextPageIndex"));
  404.             connections.addElement(connection);
  405.  
  406.             setNextPageIndex.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  407.             md.addElement(setNextPageIndex);
  408.         } catch (Exception e) { throw new Error("setNextPageName:: " + e.toString()); }
  409.  
  410.         // setPreviousPageIndex
  411.  
  412.         try{
  413.             args = new Class[1];
  414.             args[0] = java.lang.Integer.TYPE;
  415.             MethodDescriptor setPreviousPageIndex = new MethodDescriptor(beanClass.getMethod("setPreviousPageIndex", args));
  416.  
  417.             connections = new java.util.Vector();
  418.             connection = new ConnectionDescriptor("input", "int", "",
  419.                                     "%name%.setPreviousPageIndex(%arg%);",
  420.                                     conn.getString("SetPreviousPageIndex"));
  421.             connections.addElement(connection);
  422.  
  423.             setPreviousPageIndex.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  424.             md.addElement(setPreviousPageIndex);
  425.         } catch (Exception e) { throw new Error("setPreviousPageName:: " + e.toString()); }
  426.  
  427.         // setNextPage
  428.  
  429.         try{
  430.             args = new Class[1];
  431.             args[0] = java.awt.Component.class;
  432.             MethodDescriptor setNextPage = new MethodDescriptor(beanClass.getMethod("setNextPage", args));
  433.  
  434.             connections = new java.util.Vector();
  435.             connection = new ConnectionDescriptor("input", "java.awt.Component", "",
  436.                                     "%name%.setNextPage(%arg%);",
  437.                                     conn.getString("SetNextPage"));
  438.             connections.addElement(connection);
  439.  
  440.             setNextPage.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  441.             md.addElement(setNextPage);
  442.         } catch (Exception e) { throw new Error("setNextPage:: " + e.toString()); }
  443.  
  444.         // setPreviousPage
  445.  
  446.         try{
  447.             args = new Class[1];
  448.             args[0] = java.awt.Component.class;
  449.             MethodDescriptor setPreviousPage = new MethodDescriptor(beanClass.getMethod("setPreviousPage", args));
  450.  
  451.             connections = new java.util.Vector();
  452.             connection = new ConnectionDescriptor("input", "java.awt.Component", "",
  453.                                     "%name%.setPreviousPage(%arg%);",
  454.                                     conn.getString("SetPreviousPage"));
  455.             connections.addElement(connection);
  456.  
  457.             setPreviousPage.setValue(ConnectionDescriptor.CONNECTIONS, connections);
  458.             md.addElement(setPreviousPage);
  459.         } catch (Exception e) { throw new Error("setPreviousPage:: " + e.toString()); }
  460.  
  461.         MethodDescriptor[] rv = new MethodDescriptor[md.size()];
  462.         md.copyInto(rv);
  463.  
  464.         return rv;
  465.     }
  466.  
  467.     /**
  468.      * Returns descriptions of this bean's properties.
  469.      */
  470.     public PropertyDescriptor[] getPropertyDescriptors() {
  471.         ResourceBundle prop = ResourceBundle.getBundle("symantec.itools.resources.PropBundle");
  472.         
  473.         try{
  474.             // SelectedIndex
  475.             
  476.             PropertyDescriptor selectedIndex = new PropertyDescriptor("selectedIndex", beanClass,
  477.                 "getSelectedIndex", null);
  478.             selectedIndex.setBound(true);
  479.             //selectedIndex.setConstrained(true);
  480.             selectedIndex.setDisplayName(prop.getString("SelectedIndex"));
  481.             selectedIndex.setHidden(true);
  482.  
  483.             // ComponentAt
  484.  
  485.             /*
  486.             PropertyDescriptor componentAt = new PropertyDescriptor("componentAt", beanClass);
  487.             componentAt.setBound(true);
  488.             componentAt.setConstrained(true);
  489.             componentAt.setDisplayName("Component at index");
  490.             componentAt.setHidden(true);
  491.             */
  492.  
  493.             // HelpButtonVisible
  494.  
  495.             PropertyDescriptor helpButtonVisible = new PropertyDescriptor("helpButtonVisible", beanClass);
  496.             helpButtonVisible.setBound(true);
  497.             helpButtonVisible.setConstrained(true);
  498.             helpButtonVisible.setDisplayName(prop.getString("HelpButtonVisible"));
  499.  
  500.             // Combined button
  501.  
  502.             PropertyDescriptor combinedButton = new PropertyDescriptor("combinedButton", beanClass);
  503.             combinedButton.setBound(true);
  504.             combinedButton.setConstrained(true);
  505.             combinedButton.setDisplayName(prop.getString("CombinedButton"));
  506.             
  507.             // Buttons alignment
  508.             
  509.             PropertyDescriptor buttonsAlignment = new PropertyDescriptor("buttonsAlignment", beanClass);
  510.             buttonsAlignment.setBound(true);
  511.             buttonsAlignment.setConstrained(true);
  512.             buttonsAlignment.setDisplayName(prop.getString("ButtonsAlignment"));
  513.             buttonsAlignment.setValue("ENUMERATION", "LEFT=0, CENTER=1, RIGHT=2");
  514.  
  515.             // PageCount
  516.  
  517.             PropertyDescriptor pageCount = new PropertyDescriptor("pageCount", beanClass,
  518.                 "getPageCount", null);
  519.             pageCount.setBound(true);
  520.             pageCount.setDisplayName(prop.getString("PageCount"));
  521.             pageCount.setHidden(true);
  522.  
  523.             // Layout
  524.  
  525.             PropertyDescriptor layout = new PropertyDescriptor("layout", beanClass);
  526.             layout.setHidden(true);
  527.  
  528.             PropertyDescriptor[] rv = {
  529.                 selectedIndex,
  530.                 //componentAt,
  531.                 helpButtonVisible,
  532.                 combinedButton,
  533.                 buttonsAlignment,
  534.                 pageCount,
  535.                 layout};
  536.             return rv;
  537.         } catch (IntrospectionException e) { throw new Error(e.toString()); }
  538.     }
  539.     /*
  540.     public EventSetDescriptor[] getEventSetDescriptors() {
  541.         try {
  542.             EventSetDescriptor action = new EventSetDescriptor();
  543.         } catch() {}
  544.         public EventSetDescriptor(Class sourceClass,
  545.                            String eventSetName,
  546.                            Class listenerType,
  547.                            String listenerMethodName) throws IntrospectionException
  548.  
  549.     }
  550.     */
  551.  
  552.     /**
  553.      * Returns the index of the property expected to be changed most often by the designer.
  554.      */
  555.     public int getDefaultPropertyIndex() {
  556.         return 0;    //  the index for our default property is always 0
  557.     }
  558.  
  559.     private final static Class beanClass = symantec.itools.awt.Wizard.class;
  560. }
  561.